<?php
include_once('common/header.php');
if($AppUI->id <= 0 || (isset($_SESSION['product']) && ($_SESSION['product']&1<<1)==0)) {
	Vfriend_Function::redirect(HOST_BACKEND);
}
$strRefer	   	= isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : (HOST_BACKEND . 'category/index');
$intParentId 	= $objRequest->getParam('parentid',0);
if($intParentId > 0) {
	$objCommon	 = new Vfriend_Common();
	$arrParent	 = $objCommon->getCategory(0,9);
	$this->view->arrParent 		= $arrParent;
}
$this->view->intParentId 	= $intParentId;
$this->view->refer 			= $strRefer;
?>